//
//  CollectionFootView.swift
//  Beadhouse
//
//  Created by Apple on 2018/10/27.
//  Copyright © 2018年 wangdong. All rights reserved.
//

import UIKit
import SnapKit
class CollectionFootView: UICollectionReusableView {
    var headView = UIView()
    var label = UILabel()
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    override init(frame: CGRect) {
        super.init(frame: frame)
         self.addSubview(headView)
        //self.headView = UIView.init(frame: CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height))
        self.headView.snp.makeConstraints { (make) in
            make.height.width.equalToSuperview()
        }
        
         headView .addSubview(label)
         self.label.snp.makeConstraints { (make) in
            make.width.equalTo(100)
            make.height.equalTo(40)
            make.center.equalToSuperview()
        }
    }
}
